import request from '@/utils/request'

export function queryDashboard(data) {
  return request({
    url: 'api/patient/census',
    method: 'get',
    data
  })
}

export function findPatientGroupByProvince(data) {
  return request({
    url: 'api/patient/findPatientGroupByProvince',
    method: 'get',
    data
  })
}

export function addTreatmentBeforeEnrollment(data) {
  return request({
    url: 'api/treatmentBeforeEnrollment',
    method: 'post',
    data
  })
}

export function addMedicalHistoryBefore(data) {
  return request({
    url: 'api/medicalHistoryBefore',
    method: 'post',
    data
  })
}

export function addHealthCheckup(data) {
  return request({
    url: '/api/healthCheckup',
    method: 'post',
    data
  })
}

export function addCheck(data) {
  return request({
    url: '/api/inspectionDiagnosis',
    method: 'post',
    data
  })
}

export default {
  queryDashboard,
  findPatientGroupByProvince,
  addTreatmentBeforeEnrollment,
  addMedicalHistoryBefore,
  addHealthCheckup,
  addCheck
}
